# -*- coding:utf-8 -*-
# %%
import datetime

__author__ = 'CYY'


def timestamp2date(timeStamp):
    dateArray = datetime.datetime.utcfromtimestamp(float(timeStamp / 1000))
    otherStyleTime = dateArray.strftime("%Y/%m/%d %H:%M:%S CST")
    return otherStyleTime


def calu(t1, t2):
    return str((t1 - t2) / 1000)


if __name__ == '__main__':
    print(timestamp2date(1544773587573))
    print(timestamp2date(1544773515924))
    print(calu(1544773587573, 1544773515924))
